package com.lhy.framework.context.event;

import com.lhy.framework.context.ApplicationContext;
import com.lhy.framework.context.ApplicationEvent;

/**
 * @Title:
 * @Description: 功能概述:
 * @Author: lihaiyang
 * @version: 1.0 .
 * @Date: 2022-09-13 08:54
 * @Copyright: Copyright(c)2022 RedaFlight.comAll Rights Reserved
 */
public class ApplicationContextEvent extends ApplicationEvent {
    /**
     * Constructs a prototypical Event.
     *
     * @param source The object on which the Event initially occurred.
     * @throws IllegalArgumentException if source is null.
     */
    public ApplicationContextEvent(Object source) {
        super(source);
    }

    public ApplicationContext getApplicationContext() {
        return (ApplicationContext) getSource();
    }
}
